const mongoose = require('mongoose');
const { ObjectId } = mongoose.Schema;

/**
 * Export model definition object.
 */
module.exports = {
  name: String,
  languages: [String],
  rules: [ObjectId],
  description: String,
  creatorId: ObjectId,
  isDefault: Boolean,
  userDefined: { type: Object, default: {} },
};
